#include "minecraftutils_plugin.h"
#include <QFile>
#include <qqml.h>

static QUrl getQml(QString name){
    return QUrl(QStringLiteral("qrc:/MineCraftUtils/%1").arg(name));
}

void MineCraftUtilsPlugin::registerTypes(const char *uri)
{
    // @uri QtQuick3DUtils
    qmlRegisterType(getQml("MineCraftBlock.qml"),uri,1,0,"MineCraftBlock");
    qmlRegisterSingletonType(getQml("MineCraftGlobal.qml"),uri,1,0,"MineCraftGlobal");
    qmlRegisterType(getQml("MineCraftScene.qml"),uri,1,0,"MineCraftScene");

}

